import request from '@/utils/request'

/**
 * 获取用户列表数据
 */
export const getAclModuleList = data => {
  return request({
    url: '/sys/aclModule/tree',
    params: data
  })
}

export const addAclModule = data => {
  console.log(JSON.stringify(data))
  return request({
    url: '/sys/aclModule/save',
    method: 'POST',
    data
  })
}

export const updateAclModule = data => {
  return request({
    url: '/sys/aclModule/update',
    method: 'POST',
    data
  })
}

export const deleteAclModule = id => {
  return request({
    url: `/sys/aclModule/delete/${id}`,
    method: 'delete'
  })
}
